package com.example.androidapp;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class AndroidAppActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        //TextView tv = new TextView(this);
        //tv.setText("Hello world");
        final Button button = (Button) findViewById(R.id.addclass);
        button.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				setContentView(R.layout.addclass);
			}
		});
        
        final TextView text1 = (TextView) findViewById(R.id.class1);
        text1.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);				
			}               		        
        });
        
        final TextView text2 = (TextView) findViewById(R.id.class2);
        text2.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);	
			}
        });

        final TextView text3 = (TextView) findViewById(R.id.class3);
        text3.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);				
			}
        });
        
        final TextView text4 = (TextView) findViewById(R.id.class4);
        text4.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);				
			}
        });

        final TextView text5 = (TextView) findViewById(R.id.class5);
        text5.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);				
			}
        });

        final TextView text6 = (TextView) findViewById(R.id.class6);
        text6.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);				
			}
        });
        
        final TextView text7 = (TextView) findViewById(R.id.class7);
        text7.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);				
			}
        });
        
        final TextView text8 = (TextView) findViewById(R.id.class8);
        text8.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);				
			}
        });
        
        final TextView text9 = (TextView) findViewById(R.id.class9);
        text9.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);				
			}
        });
        
        final TextView text10 = (TextView) findViewById(R.id.class10);
        text10.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				setContentView(R.layout.classview);	
				
			}
        });
        
        log("owile");
        
        return;
    }
    
   @Override 
   protected void onStart()
   {
	   super.onStart();
	   
	   
   }
   
   private void log(String str){
	   Log.e("$$$$$$$$$$$$", str);
   }
   
   
}